package com.cxy.dao;

import com.cxy.pojo.User;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

/**
 * @author 蔡心勇
 * @create 2022/4/2 - 15:41
 */
@Repository
public interface UserDao {

    @Select("select * from t_user where username = #{username} and password = #{password}")
    public User queryUser(@Param(value = "username") String username, @Param(value = "password") String password);
}
